package com.gfwy.dao;

import java.util.List;

import com.gfwy.vo.Essay;

public interface IEssayDao {
	public boolean doCreate(Essay e) throws Exception;
	public boolean doUpdate(Essay e) throws Exception;
	public boolean doDelete(int eid) throws Exception;
	public int count(String keyWord) throws Exception;
	public List<Essay> findAll(String keyWord, int startIndex, int count) throws Exception;
	public Essay findById(int eid) throws Exception;
	public List<Essay> findOrderByClick() throws Exception;
	public List<Essay> findReferences(int eid, int cid, int size) throws Exception;
	public List<Essay> findByCid(int cid) throws Exception;
	public boolean doIncreaseClick(int eid) throws Exception;
}
